package cn.com.dcsgo.service.impl;

import cn.com.dcsgo.mapper.SkuAttrValueMapper;
import cn.com.dcsgo.model.product.SkuAttrValue;
import cn.com.dcsgo.service.SkuAttrValueService;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

import org.springframework.stereotype.Service;

/**
 * <p>
 * spu属性值 服务实现类
 * </p>
 *
 * @author Dcsgo
 * @since 2025-04-07
 */
@Service
public class SkuAttrValueServiceImpl extends ServiceImpl<SkuAttrValueMapper, SkuAttrValue> implements SkuAttrValueService {

    @Override
    public List<SkuAttrValue> listBySkuId(Long id) {
        LambdaQueryWrapper<SkuAttrValue> attrValueWrapper = new LambdaQueryWrapper<>();
        attrValueWrapper.eq(SkuAttrValue::getSkuId, id);
        return baseMapper.selectList(attrValueWrapper);
    }

}
